function Get-ScriptDir
{
	$CallingInvocation = Get-Variable -scope 0 myinvocation
	$ScriptName = $CallingInvocation.Value.ScriptName
	if ($ScriptName -ne $null -and $ScriptName -ne "")
	{
	  $scriptPath = Split-Path -Parent $CallingInvocation.Value.ScriptName
	}
	else
	{
		$scriptPath =[string] (get-location)
	}
	$scriptPath
}

$PBnD_Dir = Get-ScriptDir

$psc_bndSriptsVersion = Get-Content "$PBnD_Dir\Version.txt"
write-Host "Using PSC_BnD Powershell Scripts $psc_bndSriptsVersion" -foreground Green

Set-Alias PBnD-Init "$PBnD_Dir\_init.ps1"

Get-ChildItem "$PBnD_Dir\Deploy\Install" -Recurse -Filter "_init.ps1" | %{. $_.fullName}



